package com.yiren.backstage.currency.entity;

import com.yiren.backstage.currency.enums.TaskStateEnum;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Transient;

import java.io.Serializable;

/**
 * Time:2021/10/29 9:05
 * Author:xiaozan
 * Description:项目 实体类
 */
@Entity(nameInDb = "project", createInDb = false)
public class ProjectEntity implements Serializable{
    private static final long serialVersionUID = -7384892938863176725L;

    @Id
    private String id;

    /**项目类型*/
    private String projectType;

    /**项目名称*/
    private String name;

    /**项目图片*/
    private String imageUri;

    /**项目简称*/
    private String abbreviation;

    /**项目开始播报内容*/
    private String startContent;

    /**
     * 开始语音 语音文件名称-选择语音文件时
     * 内容为空时：取开始播报内容合成播报
     * 内容不为空时：根据当前语音文件名称播报本地语音
     */
    private String startVoiceName;

    /**项目结束播报内容*/
    private String endContent;

    /**
     * 开始语音 语音文件名称-选择语音文件时
     * 内容为空时：取开始播报内容合成播报
     * 内容不为空时：根据当前语音文件名称播报本地语音
     */
    private String endVoiceName;

    /**项目执行状态*/
    @Transient
    private TaskStateEnum taskState;

    public ProjectEntity(String id){
        this.id = id;
    }

    public ProjectEntity(String id, String name) {
        this.id = id;
        this.name = name;
    }

    @Generated(hash = 1650332392)
    public ProjectEntity(String id, String projectType, String name,
            String imageUri, String abbreviation, String startContent,
            String startVoiceName, String endContent, String endVoiceName) {
        this.id = id;
        this.projectType = projectType;
        this.name = name;
        this.imageUri = imageUri;
        this.abbreviation = abbreviation;
        this.startContent = startContent;
        this.startVoiceName = startVoiceName;
        this.endContent = endContent;
        this.endVoiceName = endVoiceName;
    }

    @Generated(hash = 939074542)
    public ProjectEntity() {
    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getProjectType() {
        return this.projectType;
    }

    public void setProjectType(String projectType) {
        this.projectType = projectType;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImageUri() {
        return this.imageUri;
    }

    public void setImageUri(String imageUri) {
        this.imageUri = imageUri;
    }

    public String getAbbreviation() {
        return this.abbreviation;
    }

    public void setAbbreviation(String abbreviation) {
        this.abbreviation = abbreviation;
    }

    public String getStartContent() {
        return this.startContent;
    }

    public void setStartContent(String startContent) {
        this.startContent = startContent;
    }

    public String getStartVoiceName() {
        return this.startVoiceName;
    }

    public void setStartVoiceName(String startVoiceName) {
        this.startVoiceName = startVoiceName;
    }

    public String getEndContent() {
        return this.endContent;
    }

    public void setEndContent(String endContent) {
        this.endContent = endContent;
    }

    public String getEndVoiceName() {
        return this.endVoiceName;
    }

    public void setEndVoiceName(String endVoiceName) {
        this.endVoiceName = endVoiceName;
    }

    public TaskStateEnum getTaskState() {
        return taskState;
    }

    public void setTaskState(TaskStateEnum taskState) {
        this.taskState = taskState;
    }
}
